import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'genderRePipe',
  pure: true
})
export class GenderRePipePipe implements PipeTransform {

  transform(value: string, args?: any): string {
    switch (value) {
      case 'MALE': return '男';
      case 'FEMALE': return '女';
      default:
        return '保密';
    }
  }

}
